package com.rockcent.mall.lib.repository;

import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.domain.enumclass.MerchantOrderSourceType;
import com.rockcent.mall.lib.domain.enumclass.ProductEventType;
import com.rockcent.mall.lib.dto.MerchantDto;

/**
 * Created by zhangjh on 2016/9/29.
 */
public interface MerchantRepositoryCustomer {

    MerchantDto getMechantInforById(Long id);

    Long getViewCountYesterDay(Long mallId, Long merchantId, ProductEventType viewed, Whether isFormChannel);

    Long getNewCustomerCount(Long mallId, Long merchantId);

    Long getNewCustomerOrderCount(Long mallId, Long merchantId);

    Double getNewCustomerOrderTotal(Long mallId, Long merchantId);

    Long getOldCustomerOrderCount(Long mallId, Long merchantId);

    Double getOldCustomerOrderTotal(Long mallId, Long merchantId);

    Long getOldCustomerCount(Long id, Long id1);
}
